package com.oa.pm.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.core.PageResult;
import com.oa.core.utils.request.RFormParam;
import com.oa.pm.dto.TrainingPlanDTO;
import com.oa.pm.entity.TrainingPlan;
import com.baomidou.mybatisplus.service.IService;
import com.oa.pm.vo.TrainingPlanListVO;
import com.oa.system.dto.TrainingPlanListDTO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 培训计划 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ITrainingPlanService extends IService<TrainingPlan> {
    /**
     * 自定义分页
     * @return
     */
    PageResult<TrainingPlan> findList(RFormParam param);

    /**
    * 根据id查询
    */
    TrainingPlan findTrainingPlanById(String id);

    boolean addTrainingPlan(TrainingPlanDTO trainingPlanDTO);

    boolean editTrainingPlan(TrainingPlanDTO trainingPlanDTO);

    PageResult<TrainingPlanListVO> findTrainingPlanList(TrainingPlanListDTO trainingPlanListDTO);

    void export(TrainingPlanListDTO trainingPlanListDTO, HttpServletResponse response);
}
